<?php
declare (strict_types=1);

namespace app\admin\controller;

use think\facade\Cache;
use think\facade\View;
use app\common\controller\Config;
use addons\Builder\driver\trait\Admin;

class Login
{
    use Admin;

    public function index(): string
    {
        if (!Cache::get('system')) {
            Cache::set('system', Config::lists());
        }
        View::assign('random', rand(1, 7));

        return View::fetch();
    }
}